﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="callbacks.aspx.cs" Inherits="CallBacks" %>
<%   
    string src = _REQUEST["source"];
    string oper = _REQUEST["oper"];

    switch (src)
    {
        case "ColorDictionary":
            switch (oper)
            {
                case "add":  AddToColorDictionary(); break;
                case "edit": EditColorDictionary(); break;
                case "del":  DeleteColorDictionary(); break;
                case "find": FindColorDictionary(); break;
                default: GetColorDictionary(); break;
            }
            break;

        case "VendorDictionary":
            switch (oper)
            {
                case "add":  AddToVendorDictionary(); break;
                case "edit": EditVendorDictionary(); break;
                case "del":  DeleteVendorDictionary(); break;
                case "find": FindVendorDictionary(); break;
                default: GetVendorDictionary(); break;
            }
            break;

        case "ModelDictionary":
            switch (oper)
            {
                case "add": AddToModelDictionary(); break;
                case "edit": EditModelDictionary(); break;
                case "del": DeleteModelDictionary(); break;
                case "find": FindModelDictionary(); break;
                default: GetModelDictionary(); break;
            }
            break;

        default:
            break;
    }
%>